<fieldset>
    <legend>条件搜索</legend>
    <form action="{:sysuri()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">活动</label>
            <label class="layui-input-inline">
                <select name="activity_id" cleable value="{$query.activity_id|default=''}" id="">
                    <option value="">全部</option>
                    {volist name="activitys" id="vo"} 
                        <option   {if isset($query.activity_id) && $query.activity_id == $vo.id} selected {/if}  value="{$vo.id}">{$vo.name}</option>
                    {/volist}
                  
                </select>
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单编号</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="sn" placeholder="请输入订单编号" value="{$query.sn|default=''}">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">票券名称</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="ticket_name" placeholder="请输入票券名称" value="{$query.ticket_name|default=''}">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户信息</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="user_name" placeholder="姓名邮箱电话搜索" value="{$query.user_name|default=''}">
            </label>
        </div>

        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">状态</label>
            <label class="layui-input-inline">
                <select name="status"  id="">
                    <option  {if !isset($query.status) || $query.status == ''} selected {/if}  value="">全部</option>
                    <option  {if isset($query.status) && $query.status == 1} selected {/if} value="1">已创建</option>
                    <option {if isset($query.status) && $query.status == 2} selected {/if}  value="2">已支付</option>
                    <option {if isset($query.status) && $query.status == 3} selected {/if}  value="3">待审核</option>
                    <option {if isset($query.status) && $query.status == 4} selected {/if}  value="4">已出票</option>
                    <option {if isset($query.status) && $query.status == 5} selected {/if}  value="5">已退款</option>
                    <option {if isset($query.status) && $query.status == 6} selected {/if}  value="6">无效</option>
                </select>
            </label>
        </div>


        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <a class="layui-btn layui-btn-primary" data-action="{:url('state',['status'=>2])}" data-href="{:url('export',['status'=>$query.status ?? '','user_name'=>$query.user_name ?? '','ticket_name'=>$query.ticket_name ?? '','sn'=>$query.ticket_name ?? '','activity_id'=>$query.activity_id ?? 0])}"><i class="layui-icon">&#xe62f;</i> 导 出</a>
        </div>
    </form>

</fieldset>

